<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="./jquery.min.js"></script>
    <title></title>
</head>

<body>
    <script>
        function getJsonFromUrl() {
            var query = location.search.substr(1);
            var result = {};
            query.split("&").forEach(function (part) {
                var item = part.split("=");
                result[item[0]] = decodeURIComponent(item[1]);
            });
            return result;
        }
        var htmlFileName = getJsonFromUrl().htmlFileName;
        window.localStorage.setItem("htmlFileName", htmlFileName);
        var wechat_redirect_url = 'http://csfy.bgi.com/csfy/user/connectWeixin.do';
        window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3c81184a8feac2cb&redirect_uri=' + wechat_redirect_url + '&response_type=code&scope=snsapi_base&state=1&connect_redirect=1#wechat_redirect'
        
    </script>
</body>

</html>